<?php

namespace App\Http\Controllers\api;

use App\Http\Controllers\Controller;
use Illuminate\Foundation\Inspiring;

class HelloController extends Controller
{
    function Hello() {
        return response()->json([
            'success' => false,
            'message' => Inspiring::quote(),
            'background' => [
                'image' => 'http://alicdn.epg.huan.tv/api/Test01/images/WXYkRM_6000x3375.jpeg'
            ]
        ]);
    }

    function IptvAdBoot() {
        return response()->json([
            'success' => true,
            'message' => 'ok',
            'delay' => 2,
            'boot_animation' => 'http://alicdn.epg.huan.tv/api/Test01/images/2021-08-06-14-15-55-0-18s.ts',
            'launcher' => [
                'type' => 'intent',
                'action' => 'com.hili.mp.browser.ES_ACTION_LAUNCH',
                'putExtra' => [
                    'es_pkg' => 'es.com.wasu.tv',
                    'es_args' => '',
                ]
            ]
        ]);
    }
}
